package com.cy.store.service.impl;

import com.cy.store.entity.DictDistrict;
import com.cy.store.mapper.DictDistrictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhangSir
 */
@Service
public class DictDistrictService {
    @Autowired
    private DictDistrictMapper dictDistrictMapper;

    // TODO 查询所有的省市区数据
    public List<DictDistrict> getAllDistrict(){
        List<DictDistrict> districtList = dictDistrictMapper.findAllDistrict();
        return districtList;
    }
}
